namespace Maple.Branch.Features.Controllers
{
    using System.Threading.Tasks;
    using Consts;
    using Dtos;
    using IAppServices;
    using Volo.Abp;
    using Volo.Abp.AspNetCore.Mvc;

    [RemoteService(Name = FeaturesModuleConsts.RemoteServiceName)]
    public class FeatureController : AbpController, IFeatureAppService
    {
        protected IFeatureAppService FeatureAppService { get; }

        public FeatureController(IFeatureAppService featureAppService)
        {
            FeatureAppService = featureAppService;
        }

        public virtual Task<FeatureListDto> GetAsync(string providerName, string providerKey)
        {
            return FeatureAppService.GetAsync(providerName, providerKey);
        }

        public virtual Task UpdateAsync(string providerName, string providerKey, UpdateFeaturesDto input)
        {
            return FeatureAppService.UpdateAsync(providerName, providerKey, input);
        }
    }
}
